home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / libfpvm / pvmfputinfo.m4 < prev    next >
Text File  |  1997-07-22  |  524b  |  27 lines

  1.  
  2. /* $Id: pvmfputinfo.m4,v 1.2 1997/04/01 20:58:58 pvmsrc Exp $ */
  3.  
  4. #include "pvm3.h"
  5. #include "pvm_consts.h"
  6.  
  7. void
  8. FUNCTION(pvmfputinfo) ARGS(`STRING_ARG(name), bufid, flags, mbx_index')
  9. STRING_ARG_DECL(name);
  10. int *bufid, *flags, *mbx_index;
  11. {
  12.  
  13.     char tname[MAX_MBOX_NAME + 1];
  14.  
  15.     /*
  16.     *  Copy the mailbox name to make sure there is
  17.     * a NUL at the end.
  18.     */
  19.     if (ftocstr(tname, sizeof(tname), STRING_PTR(name), STRING_LEN(name))) {
  20.         *mbx_index = PvmBadParam;
  21.         return;
  22.     }
  23.  
  24.     *mbx_index = pvm_putinfo(tname, *bufid, *flags);
  25. }
  26.  
  27.